<!--#include file="../../inc/AspCms_SettingClass.asp" -->
<%
CheckAdmin("AspCms_Statistics.asp")
dim action : action=getForm("action","get")

if action="clear" then clearStatistics

Sub clearStatistics
	conn.Exec"delete from {prefix}Visits","exe"	
	response.Redirect("?")
End Sub
%>
<!DOCTYPE html>
<html lang="zh-CN" style="min-height: 100%;">
<head>
<title>访问统计</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />

<link href="https://cdn.bootcss.com/uikit/3.0.0-beta.22/css/uikit.min.css" rel="stylesheet">
<link href="https://cdn.bootcss.com/jquery.perfect-scrollbar/0.7.0/css/perfect-scrollbar.min.css" rel="stylesheet">
<link href="../../css/timoo/fancySelect.css" rel="stylesheet">
<link href="../../css/timoo/jquery.datetimepicker.min.css" rel="stylesheet">
<link href="../../css/timoo/timoo.css" rel="stylesheet">

<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
<script src="../../ueditor/ueditor.config.js"></script>
<script src="../../ueditor/ueditor.all.min.js"> </script>
<script src="../../ueditor/lang/zh-cn/zh-cn.js"></script>
<script src="https://cdn.bootcss.com/uikit/3.0.0-beta.22/js/uikit.min.js"></script>
<script src="https://cdn.bootcss.com/uikit/3.0.0-beta.22/js/uikit-icons.min.js"></script>
<script src="https://cdn.bootcss.com/jquery.perfect-scrollbar/0.7.0/js/perfect-scrollbar.jquery.min.js"></script>
<script src="../../js/timoo/icheck.min.js"></script>
<script src="../../js/timoo/fancySelect.js"></script>
<script src="../../js/timoo/jquery.datetimepicker.full.min.js"></script>
<script src="../../js/timoo/timoo.js"></script>
</head>
<body>
<div class="tm-right">
    <div class="main">
        <div class="section setting-company">
            <div class="layout">
                <div class="title">访问统计</div>
                <div class="content">
                    <form name="form" action="?action=clear" method="post">
                        <div class="tm-transition list">
                            <div class="uk-clearfix tm-transition subject">
                                <span class="uk-float-left">今日访问量</span>
                                <i class="tm-transition icon" uk-icon="icon: info" uk-tooltip="pos: right" title="调用标签：{visits:today}。"></i>
                            </div>
                            <div class="input">
                                <input type="text" maxLength="200" value="<%=getTodayVisits%>">
                            </div>
                        </div>
                        <div class="tm-transition list">
                            <div class="uk-clearfix tm-transition subject">
                                <span class="uk-float-left">昨日访问量</span>
                                <i class="tm-transition icon" uk-icon="icon: info" uk-tooltip="pos: right" title="调用标签：{visits:yesterday}。"></i>
                            </div>
                            <div class="input">
                                <input type="text" maxLength="200" value="<%=getYesterdayVisits%>">
                            </div>
                        </div>
                        <div class="tm-transition list">
                            <div class="uk-clearfix tm-transition subject">
                                <span class="uk-float-left">本月访问量</span>
                                <i class="tm-transition icon" uk-icon="icon: info" uk-tooltip="pos: right" title="调用标签：{visits:month}。"></i>
                            </div>
                            <div class="input">
                                <input type="text" maxLength="200" value="<%=getMonthVisits%>">
                            </div>
                        </div>
                        <div class="tm-transition list">
                            <div class="uk-clearfix tm-transition subject">
                                <span class="uk-float-left">总访问量</span>
                                <i class="tm-transition icon" uk-icon="icon: info" uk-tooltip="pos: right" title="调用标签：{visits:all}。"></i>
                            </div>
                            <div class="input">
                                <input type="text" maxLength="200" value="<%=getAllVisits%>">
                            </div>
                        </div>
                        <div class="uk-clearfix tm-transition list submit">
                            <div class="uk-float-left input">
                                <input type="submit" value="全部清零" onClick="return confirm('确定要清零吗')">
                            </div>
                            <div class="uk-float-left input">
                                <input onClick="location.href='<%=getPageName()%>'" type="button" value="刷新"> 
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>